#include <stdio.h>

int mystrlen(char str[])
{
    char *p = str;

    while(*p) {
        p++;
    }
    
    return p - str;
}

int main(int argc, char *argv[])
{
    char str[] = {'a', 'b', 'c'};

    int len = mystrlen(str);
    printf("len str: %d\n", len);
    
    return 0;
}
